package com.henghai.zhenxuan.data.api;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

import java.util.ArrayList;

public class SubmitTaskApi implements IRequestApi, IRequestType {

    private String taskId;
    private ArrayList<UrlBean> receiveTaskFileList;

    public SubmitTaskApi(String taskId, ArrayList<UrlBean> receiveTaskFileList) {
        this.taskId = taskId;
        this.receiveTaskFileList = receiveTaskFileList;
    }

    public static class UrlBean {
        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        private String url;
    }

    @NonNull
    @Override
    public String getApi() {
        return "/system/issueTask/submitReceiveTask";
    }

    @NonNull
    @Override
    public BodyType getBodyType() {
        return BodyType.JSON;
    }
}
